import request from '@/utils/request'

// 创建授权应用信息
export function createInfoAuthAliApp(data) {
  return request({
    url: '/alipay/info-auth-ali-app/create',
    method: 'post',
    data: data
  })
}

// 更新授权应用信息
export function updateInfoAuthAliApp(data) {
  return request({
    url: '/alipay/info-auth-ali-app/update',
    method: 'put',
    data: data
  })
}

// 删除授权应用信息
export function deleteInfoAuthAliApp(id) {
  return request({
    url: '/alipay/info-auth-ali-app/delete?id=' + id,
    method: 'delete'
  })
}

// 获得授权应用信息
export function getInfoAuthAliApp(id) {
  return request({
    url: '/alipay/info-auth-ali-app/get?id=' + id,
    method: 'get'
  })
}

// 获得授权应用信息分页
export function getInfoAuthAliAppPage(query) {
  return request({
    url: '/alipay/info-auth-ali-app/page',
    method: 'get',
    params: query
  })
}

// 导出授权应用信息 Excel
export function exportInfoAuthAliAppExcel(query) {
  return request({
    url: '/alipay/info-auth-ali-app/export-excel',
    method: 'get',
    params: query,
    responseType: 'blob'
  })
}
